


$(document).ready(function(){
	var id=getvl("id")
	if(id!=undefined){
		loanorderDetail(id);
	}
	
});

/**
 * 评估报告详情
 */
function loanorderDetail(id) {
		$.ajax({
			url: urlcore + "/api/evaluation/selectOne?id=" + id,
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					var da = data.data;
					$('#name').html(da.name);
					$('#storage_capacity').html(da.storageCapacity);
					$('#color').html(da.color);
					$('#screen_show').html(da.screenShow);
					$('#service_history').html(da.serviceHistory);
					$('#placeServePercent').html(da.placeServeMoney);
					$('#msgAuthPercent').html(da.msgAuthMoney);
					$('#riskServePercent').html(da.riskServeMoney);
					$('#function_question').html(da.functionQuestion);
					$('#upt_datetime').html(da.uptDatetime);
					$('#status').html(da.status);
					if(da.status=="已打款"){
						$('#batch_no').html(da.batchNo);
						$('#pay_money').html(da.payMoney+"元");
						$('#final_money').html(da.finalMoney+"元");
						$('#batch_no').parent().parent().show();
						$('#pay_money').parent().parent().show();
						$('#final_money').parent().parent().show();
					}else if(da.status=="打款失败"){
						$('#fail_reason').html(da.failReason);
						var fa=document.getElementById("fail_reason");
						var parent=fa.parentNode.parentNode;
						parent.style.display = "block"
					}else if(da.status=="拒绝"){
						$('#refuse_reason').html(da.refuseReason);
						$('#refuse_reason').parent().parent().show();
						$('#thisla').html("拒绝时间");
					}
				}

			},
			error: function() {
				alert("服务器出错");
			}
		});

}